<tagLib name="html" />
<div id="main-content">
    <div id="main" class="main">
        <div class="user-hd">
            <h2>财务管理>>{$page_title}</h2>
        </div>
        <div class="clearfix searchspin">
            <dl>
                <dt>筛选条件:</dt>
                <dd>
                    <form action="/Admin/BillingVideoPlay/agentList" method="get">
                        开通时间：<input type="text" name="start_time" id="create_time_start" value="{:I('get.start_time')}" placeholder="开始时间" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'create_time_end\')||\'%y-%M-%d\'}'})"</literal> readonly="readonly" size="30" style="width: 90px;"/>
                        <input type="text" name="end_time" id="create_time_end" placeholder="结束时间"  value="{:I('get.end_time')}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({minDate:'#F{$dp.$D(\'create_time_start\')}',maxDate:'%y-%M-%d'})"</literal> readonly="readonly" size="30" style="width: 90px;" />
                        计费方式：<html:select options="videoPlayType" name="videoPlayType" selected="get[videoPlayType]"/>
                        <input type="text" maxlength="60" name="keywords" value="{:I('get.keywords')}" placeholder="请输入代理商编号或代理商名称" class="bg-input" style="width: 200px;">
                        <a href="{:U('Admin/BillingVideoPlay/agentList')}" class="sblue-btn" style="height:28px;width:68px;">清空 </a>
                        <input type="submit" class="sblue-btn" value="检索">
                        <div class="clear"></div>
                    </form>
                </dd>
            </dl>
        </div>
        <div class="spin-cont">
            <table>
                <tr>
                    <th style="width: 160px;">代理商编号</th>
                    <th  style="width: 160px;">代理商名称</th>
                    <th style="width: 130px;">开通时间</th>
                    <th style="width: 130px;">影院数</th>
                    <th style="width: 130px;">幕数</th>
                    <th style="width: 130px;">计费方式</th>
                    <th style="width: 130px;">结算时间</th>
                    <th style="width: 150px;">操作</th>
                </tr>
                <volist name="result['list']" id="vo">
                    <tr>
                        <td>{$vo.agentid}</td>
                        <td>{$vo.agent_name}</td>
                        <td>{$vo.agent_time|date="Y-m-d",###}</td>
                        <td>{$vo.cinema_host_hall|default='0'}</td>
                        <td>{$vo.hall|default='0'}</td>
                        <td>{$vo.billing_video_play_type}</td>
                        <td>每月 {$vo.end_day} 号</td>
                        <td>
                            <a href="{:U('Admin/Agent/detail/id/'.$vo['id'])}">详情</a>
                            <a href="{:U('agentBalance')}?id={$vo.id}">结算记录</a>
                        </td>
                    </tr>
                </volist>
                <empty name="result['list']">
                    <tr>
                        <td colspan="8">没有内容...</td>
                    </tr>
                </empty>
            </table>
            <div class="page txt-center">
                {$result.page}
            </div>
        </div>
    </div>
</div>